<?php echo $header; ?>
<div id="content">
   <div class="breadcrumb">
    <?php echo $this->breadCrumbs(); ?>
  </div>
  <div class="box">
    <div class="heading">
      <h1><img src="view/image/product.png" alt="" />采集内容 [<?php echo $node['site_name']?> :: <?php echo $node['node_title']?>]</h1>
    </div>
    <div class="content">
    <p>线程：<?php echo $node['col_thread'];?>，每次采集：<?php echo $node['col_per_cont'];?>，
    	已采集：<input type="text" id="num" readonly="readonly" value="0" size="6"> / <?php echo $total;?></p>
	<hr>
	<table width="98%">
	<?php
	for($i = 1; $i <= $node['col_thread']; $i++) {
		if ($i % 2 == 1) echo "<tr>";
	?>
	<td width="50%">
	<div style="margin-bottom: 5px; border:1px solid #ccc;padding:5px;">
	<b>&nbsp;<?php echo $i; ?></b>
	<iframe src="<?php echo UA("tool/collection/cthread")?>&id=<?php echo $node['id'];?>&init=<?php echo rand(2,5);?>" height="100" frameborder="0" width="100%"></iframe>
	</div></td>
	<?php 
		if ($i % 2 == 0) echo "</tr>";
	}
		if ($i % 2 != 1) echo "<td></td></tr>";
	?>
	</table>
    </div>
   </div>
</div>
<script>
	function calColNum(n) {
		var val = Number($("#num").val()) + n;
		$("#num").val(val);
	}
</script>
<?php echo $footer; ?>